Integrand size = 28, antiderivative size = 389 \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}+\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f^2 \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^3}+\frac {2 \sqrt {a^2+b^2} f^2 \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^3}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2} \]
[Out]
Time = 0.56 (sec) , antiderivative size = 389, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {5684, 32, 3377, 2718, 3403, 2296, 2221, 2611, 2320, 6724} \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {2 f^2 \sqrt {a^2+b^2} \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^3}+\frac {2 f^2 \sqrt {a^2+b^2} \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^3}+\frac {2 f \sqrt {a^2+b^2} (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 f \sqrt {a^2+b^2} (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b^2 d}-\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2}+\frac {(e+f x)^2 \cosh (c+d x)}{b d} \]
[In]
[Out]
Rule 32
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 2718
Rule 3377
Rule 3403
Rule 5684
Rule 6724
Rubi steps \begin{align*} \text {integral}& = -\frac {a \int (e+f x)^2 \, dx}{b^2}+\frac {\int (e+f x)^2 \sinh (c+d x) \, dx}{b}+\frac {\left (a^2+b^2\right ) \int \frac {(e+f x)^2}{a+b \sinh (c+d x)} \, dx}{b^2} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\left (2 \left (a^2+b^2\right )\right ) \int \frac {e^{c+d x} (e+f x)^2}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b^2}-\frac {(2 f) \int (e+f x) \cosh (c+d x) \, dx}{b d} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2}+\frac {\left (2 \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)^2}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b}-\frac {\left (2 \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)^2}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b}+\frac {\left (2 f^2\right ) \int \sinh (c+d x) \, dx}{b d^2} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2}-\frac {\left (2 \sqrt {a^2+b^2} f\right ) \int (e+f x) \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d}+\frac {\left (2 \sqrt {a^2+b^2} f\right ) \int (e+f x) \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}+\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2}-\frac {\left (2 \sqrt {a^2+b^2} f^2\right ) \int \operatorname {PolyLog}\left (2,-\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d^2}+\frac {\left (2 \sqrt {a^2+b^2} f^2\right ) \int \operatorname {PolyLog}\left (2,-\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d^2} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}+\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2}-\frac {\left (2 \sqrt {a^2+b^2} f^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {b x}{-a+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 d^3}+\frac {\left (2 \sqrt {a^2+b^2} f^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,-\frac {b x}{a+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 d^3} \\ & = -\frac {a (e+f x)^3}{3 b^2 f}+\frac {2 f^2 \cosh (c+d x)}{b d^3}+\frac {(e+f x)^2 \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x)^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}+\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {2 \sqrt {a^2+b^2} f^2 \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^3}+\frac {2 \sqrt {a^2+b^2} f^2 \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^3}-\frac {2 f (e+f x) \sinh (c+d x)}{b d^2} \\ \end{align*}
Time = 1.41 (sec) , antiderivative size = 447, normalized size of antiderivative = 1.15 \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {a d^3 x \left (3 e^2+3 e f x+f^2 x^2\right )+3 \sqrt {a^2+b^2} \left (2 d^2 e^2 \text {arctanh}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )-2 d^2 e f x \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-d^2 f^2 x^2 \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )+2 d^2 e f x \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+d^2 f^2 x^2 \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )-2 d f (e+f x) \operatorname {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )+2 d f (e+f x) \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+2 f^2 \operatorname {PolyLog}\left (3,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )-2 f^2 \operatorname {PolyLog}\left (3,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )-3 b \cosh (d x) \left (\left (2 f^2+d^2 (e+f x)^2\right ) \cosh (c)-2 d f (e+f x) \sinh (c)\right )+3 b \left (2 d f (e+f x) \cosh (c)-\left (2 f^2+d^2 (e+f x)^2\right ) \sinh (c)\right ) \sinh (d x)}{3 b^2 d^3} \]
[In]
[Out]
\[\int \frac {\left (f x +e \right )^{2} \cosh \left (d x +c \right )^{2}}{a +b \sinh \left (d x +c \right )}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1313 vs. \(2 (355) = 710\).
Time = 0.27 (sec) , antiderivative size = 1313, normalized size of antiderivative = 3.38 \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )}^{2} \cosh \left (d x + c\right )^{2}}{b \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )}^{2} \cosh \left (d x + c\right )^{2}}{b \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x)^2 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int \frac {{\mathrm {cosh}\left (c+d\,x\right )}^2\,{\left (e+f\,x\right )}^2}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \]
[In]
[Out]